import { Navigate, RouteObject } from 'react-router';
import { lazy } from 'react';

const Home = lazy(() => import('@/views/Home'));
const About = lazy(() => import('@/views/About'));

const routes: RouteObject[] =  [
  {
    path: '/',
    element: <Navigate to="/home" replace></Navigate>,
  },
  {
    path: '/home',
    element: <Home />,
  },
  {
    path: '/about',
    element: <About />,
  },
];

export default routes
